package com.joysuch.wwyt.risk.repository;

import com.joysuch.wwyt.risk.entity.RiskEvaluationAnalyzeMethod;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface RiskEvaluationAnalyzeMethodDao extends JpaRepository<RiskEvaluationAnalyzeMethod,Long> {
    int countByNameAndWayId(String name, Long wayId);

    int countByCodeAndWayId(String code, Long wayId);

    List<RiskEvaluationAnalyzeMethod> findByWayId(Long id);

    int countByFieldId(Long id);

    List<RiskEvaluationAnalyzeMethod> findByFieldId(Long fieldId);

    List<RiskEvaluationAnalyzeMethod> findByWayIdAndContentType(Long evaluationId, int i);
}
